import UIKit


class XWSpeedResultViewController: UIViewController {
    
    @IBOutlet weak var XWSpeedLabel: UILabel!
    
    @IBOutlet weak var XWDownloadLabel: UILabel!
    
    @IBOutlet weak var XWUploadLable: UILabel!
    override func viewDidLoad() {
        super.viewDidLoad()
        showUI()
    }
    @IBAction func XWBackButtonClick(_ sender: UIButton) {
        dismiss(animated: true, completion: nil)
    }
    
}
extension XWSpeedResultViewController {
    private func showUI() {
        XWDataStateTool.shareManger.XWDownloadLabl = XWDownloadLabel
        XWDataStateTool.shareManger.XWUploadLabel = XWUploadLable
        let randomNumber = Float.random(in: 2...3)
        XWSpeedLabel.text = String(format: "%0.2f", randomNumber)
    }
}
